package com.dq.domain.statistics;

import com.dq.domain.sys.section.SysSection;
import com.dq.domain.sys.user.user.BossUser;
import com.dq.vo.baseVo.VO;
import com.dq.domain.base.BaseEntity;
import com.dq.domain.org.Org;
import com.dq.domain.sys.user.user.StaffUser;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import java.math.BigDecimal;

/**
 * @Author luchangtong
 * @Date 2020/3/19 16:56
 */
@Data
@Entity
@ApiModel("店面、员工业绩统计")
public class AchievementStatistics extends BaseEntity implements VO.ToVO {
    @ApiModelProperty("销售额")
    protected BigDecimal salePrice;
    @ApiModelProperty("充值盈利")
    protected BigDecimal rechargePrice;
    @ApiModelProperty("消耗盈利")
    protected BigDecimal consumePrice;
    @ApiModelProperty("门店")
    @ManyToOne
    protected Org org;
    @ApiModelProperty("上级部门")
    @ManyToOne
    protected SysSection department;
    @ApiModelProperty("上级省总")
    @ManyToOne
    protected SysSection provincialSection;

    @ApiModelProperty("总预约数")
    public Long subscribeNum;
    @ApiModelProperty("完成预约数")
    public Long subscribeFinishNum;
    @ApiModelProperty("顾客数")
    public Long wxuserNum;

    @ApiModelProperty("员工")
    @ManyToOne
    protected BossUser staffUser;

    @Override
    public VO toVO(boolean isRecursion) {
        return null;
    }
}
